package com.wr.mapper;

import com.wr.model.Article;
import com.wr.utils.PageData;

import java.util.List;

public interface ArticleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKeyWithBLOBs(Article record);

    int updateByPrimaryKey(Article record);

    List<Article> listPage(Article record);

    void updateViewCount(Integer id);

    List<Article> listPd(PageData pd);
}